package QL;

import java.util.List;
import java.util.ArrayList;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class ButlerGameRoomConfig implements IQLResponse
{
    /// <summary>
    /// 房间配置Id
    /// </summary>
    public long ConfigId;

    /// <summary>
    /// 房间名称
    /// </summary>
    public String RoomName;

    /// <summary>
    /// 水位线分界字符串，水位线之间用逗号隔开
    /// 示例：-1000000,-100000,100000,1000000
    /// </summary>
    public String DifficultyBoundary;

    @Override
    public void DeserializeFromJson(JSONObject jsonObj)
    {
        JSONObject t = jsonObj;
        if (t.has("config_id"))
            ConfigId = t.getLong("config_id");
        if (t.has("room_name"))
            RoomName = t.getString("room_name");
        if (t.has("difficulty_boundary"))
            DifficultyBoundary = t.getString("difficulty_boundary");
    }
}
